# Maintainer: Markus Fuchs <mail@mfuchs.org>
pkgname='knowtemarks'
pkgver=20121030
pkgrel=1
pkgdesc="A simple web application to manage your tagged notes and bookmarks"
arch=('i686' 'x86_64')
url='http://code.google.com/p/knowtemarks'
license=('BSD')
depends=('python2-tornado')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
source=()
md5sums=()
_gitroot="https://code.google.com/p/knowtemarks/"
_gitname="knowtemarks"

build()
{
    cd ${srcdir}/

    msg "Connecting to the GIT server...."
    if [[ -d ${srcdir}/${_gitname} ]] ; then
        cd ${_gitname}
        git pull origin
        msg "The local files are updated..."
    else
        git clone ${_gitroot}
        cd ${_gitname}
    fi
    
    msg "GIT checkout done."
    
    python2 setup.py install --root ${startdir}/pkg/ || return 1
    
}